<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
|  用户端 需要鉴权 API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|

*/



Route::post('pay', [\App\Controllers\PayController::class, 'pay']); //支付

Route::get('getUserInfo', [\App\Controllers\UserController::class, 'getUserInfo']); //用户信息
Route::post('editNickname', [\App\Controllers\UserController::class, 'editNickname']); //修改昵称

Route::get('getTaskList', [\App\Controllers\UserController::class, 'getTaskList']);   //任务列表
Route::post('releaseCase', [\App\Controllers\CaseController::class, 'releaseCase']);   //发布案例
Route::get('getCaseList', [\App\Controllers\CaseController::class, 'getCaseList']);   //案例列表
Route::post('postOpenAi', [\App\Controllers\OpenAiController::class, 'postOpenAi']);    //openai 请求
Route::post('conflateVideo', [\App\Controllers\MakeVideoController::class, 'conflateVideo']);  //创建合成
Route::post('upload', [\App\Controllers\UploadOssController::class, 'upload']);    //上传文件
Route::post('feedback', [\App\Controllers\AppController::class, 'feedback']);    //意见反馈
